package org.jeecg.modules.fund.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.base.BaseMap;
import org.jeecg.modules.fund.entity.FundValue;
import org.jeecg.modules.fund.entity.StockValue;

import java.util.List;

public interface StockValueMapper extends BaseMapper<StockValue> {
    /**
     * 动态生成表格
     *
     * @param tableName
     */
    void createTable(@Param("tableName") String tableName);

    /**
     * 表是否存在
     *
     * @param tableName
     * @return
     */
    int isExistTable(@Param("tableName") String tableName);

    /**
     * 批量插入或更新
     *
     * @param tableName
     * @param list
     */
    void batchInsertOrUpdate(@Param("tableName") String tableName, @Param("list") List<StockValue> list);
}
